<style>
    table tr td {   
        border: none;
    }
    .badge {
    padding-top: 0px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 1px;
    border-radius: 1px;
    }
    
   
</style>
<div id="pokerStory<?php echo $story['Story']['id'];?>" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
                    
    
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Planning Poker</h3>
        
    </div>
    <div class="modal-body">
        
         <?php
        $prev=-1;
        foreach($story['MemberPoint'] as $point){
            if ($point['user_id']==AuthComponent::user('id')){
                $prev=$point['points'];
                break;
            }
        }
        ?>
        

        <?php 
        echo $this->Form->create('MemberPoint',array('url' => '../stories/poker/'.$story['Story']['id'].'/'.$from, 'class'=>'form-horizontal')); //array('url' => array('controller' => 'stories', 'action' => 'edit',$story['id']))
        ?>
        <fieldset>
        <div class="row-fluid" align="center">
                <div class="span12">
                    <div class="span3">
                        <label for="StoryPoints">
                            <?php
                                echo $this->Html->image('poker/question.png') ;
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints" value="-1" <?php if($prev==-1) echo 'checked="checked"'; ?> >
                    </div>
                    <div class="span3">
                        <label for="StoryPoints0">
                            <?php
                                echo $this->Html->image('poker/0.png') ;
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints0" value="0" <?php if($prev==0) echo 'checked="checked"'; ?>>
                    </div>
                    <div class="span3">
                        <label for="StoryPoints1">
                            <?php
                                echo $this->Html->image('poker/1.png') ;
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints1" value="1" <?php if($prev==1) echo 'checked="checked"'; ?>>
                    </div>
                    <div class="span3">
                        <label for="StoryPoints2">
                            <?php
                                echo $this->Html->image('poker/2.png') ;
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints2" value="2" <?php if($prev==2) echo 'checked="checked"'; ?>>
                    </div>
                </div>
                <div class="span12"></div>
                <div class="span12" style="margin-left: 0px;">
                    <div class="span3">
                        <label for="StoryPoints3">
                            <?php
                                echo $this->Html->image('poker/3.png') ;
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints3" value="3" <?php if($prev==3) echo 'checked="checked"'; ?>>
                    </div>
                    <div class="span3">
                        <label for="StoryPoints3">
                            <?php
                                echo $this->Html->image('poker/5.png') ;
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints5" value="4" <?php if($prev==4) echo 'checked="checked"'; ?>>
                    </div>
                    <div class="span3">
                        <label for="StoryPoints8">
                            <?php
                                echo $this->Html->image('poker/8.png') ;
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints8" value="5" <?php if($prev==5) echo 'checked="checked"'; ?>>
                    </div>
                    <div class="span3">
                        <label for="StoryPoints1000">
                            <?php
                                echo $this->Html->image('poker/infinite.png') ; 
                            ?>
                        </label>
                        <input type="radio" name="data[MemberPoint][points]" id="StoryPoints100" value="6" <?php if($prev==6) echo 'checked="checked"'; ?>>
                    </div>
                </div>
        </div>

            
            
        </fieldset>

    </div>
    <div class="modal-footer">
        <div class="row-fluid " >
            <div class="span12">
                <div class="span8">                      
                </div>
                <div class="span2">
                    <button class="btn" data-dismiss="modal">Cancelar</button>
                </div>
                <div class="span2">
                    <?php
                    $options = array(
                        'label' => 'Guardar','class' => 'btn'
                    );
                    echo $this->Form->end($options);
                    ?>
                </div>
            </div>
        </div>
    </div>
    
</div>
